package chouxiang.rpc;

import java.io.IOException;

/**
 * Created by tiang on 2018/7/20.
 *
 */
public class ServerMain {
    public static void main(String[] args) {
        Provider provider = new Provider(1022);
        provider.register(new SayHello());
        provider.register(new Eat());
        try {
            provider.start();
            System.out.println("server start");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
